#ifndef COLUMN_EXPRESSION_NODE_H
#define COLUMN_EXPRESSION_NODE_H

#include "ExpressionNode.h"

class ColumnExpressionNode: public ExpressionNode {
	public:
		ColumnExpressionNode(int columnIndex):
				_columnIndex(columnIndex) {}

		virtual Column pull(const SharedArray<Column>& data) {
			return data[_columnIndex].deepCopy();
		}

	private:
		const int _columnIndex;
};

#endif
